
package com.akupilih.app.model;

public class WebService {

    private static final String NUMBER_COUNT = "10";
    private static final String POLITICAL_WAVE = "http://politicawave.com/data/api.php?gid=17";
    private static final String VOTE_RESULT = "http://akupilih.com/vote/getVote";
    private static final String KEY = "a876536d585217d05e3b985206bf48b6";
    private static final String uri = "http://api.pemiluapi.org/";
    private static final String endpoint_candidate = "calonpresiden/api/";
    private static final String caleg = "caleg?apiKey=";
    private static final String vote = "http://akupilih.com/vote/do_vote";

    private static final String endpoint_berita = "berita?json=get_recent_posts&apiKey=";
    private static final String endpoint_janji = "promises?apiKey=";
    private static final String endpoint_event = "events?apiKey=";
    private static final String count = "&count=" + NUMBER_COUNT;

    private static final String fb_graph = "http://graph.facebook.com/";
    private static final String picture = "/picture?width=400&height=400";

    public static String POLITICAL_WAVE() {
        return POLITICAL_WAVE;

    }

    public static String DO_VOTE() {
        return vote;
    }

    public static String VOTE_RESULT() {
        return VOTE_RESULT;
    }

    public static String PRESIDENTIAL_CANDIDATE() {
        return uri + endpoint_candidate + caleg + KEY;
    }

    public static String JANJI() {
        return uri + endpoint_candidate + endpoint_janji + KEY;
    }

    public static String EVENT() {
        return uri + endpoint_candidate + endpoint_event + KEY;
    }

    public static String BERITA() {
        return uri + endpoint_berita + KEY + count;
    }

    public static String FB_FOTO(String UID) {
        return fb_graph + UID + picture;
    }

}
